package com.cskaoyan.wordmemorize.dao.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cskaoyan.wordmemorize.dao.entity.UserVocExampleSentenceDO;
import com.cskaoyan.wordmemorize.dao.entity.VocChapterDO;
import com.cskaoyan.wordmemorize.dao.entity.VocDO;
import org.apache.ibatis.annotations.Param;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public interface VocMapper extends BaseMapper<VocDO> {
    List<VocDO> getVocsOfUserBook(@Param("userId") Long userId,
                                  @Param("bookId") Long bookId,
                                  @Param("offset") Integer offset,
                                  @Param("limit") Integer limit);
    List<VocChapterDO> getChapterVocsOfUserBook(@Param("userId") Long userId,
                                                @Param("bookId") Long bookId,
                                                @Param("offset") Integer offset,
                                                @Param("limit") Integer limit);
}
